package com.yanu.trace.t2s.util;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
public class Message {


    private int code;
    private  String msg;
    private Object obj;

    public Message(int code, String msg, Object obj) {
        this.code = code;
        this.msg = msg;
        this.obj = obj;
    }
    public Message(){};
    public void setSuccess(Object obj)
    {
        this.obj=obj;
        this.msg="成功";
        this.code=200;
    }
    public void setFail(int code)
    {
        this.msg="失败";
        this.code=code;
    }



}
